<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>vue3-escook</title>
  <link rel="stylesheet" href="./lib/style.css">
  <style>
    [v-cloak] {
      display: none;
    }
  </style>
  <script type="importmap">
    {
      "imports" : {
        "vue": "./lib/vue-3.4.29.js"
      }
    }
  </script>
  <script type="module">
    import { createApp, ref } from 'vue'

    const app = createApp({
      setup() {
        const msg = ref('Longbin Liu')
        const htmlStr = '<img src="./image/1.jpg" style="width: 300px" />'

        return {
          msg,
          htmlStr
        }
      }
    })

    app.mount('#app')
  </script>
</head>

<body>
  <div id="app" v-cloak>
    <!-- 在开发中，文本插值（双大括号语法）用的最多 -->
    <!--  -->
    <h1>名字是：{{ msg.toLowerCase() }}</h1>
    <div v-html="htmlStr"></div>
    <p v-pre>{{ 不希望被编译 }}</p>
  </div>
</body>

</html>